#ifndef __USER__HH__
#define __USER__HH__ 

#include <map>

namespace LB
{
	class User
	{

	public:
		int m_uid;
		char m_username[20];
		char m_password[20];
		float balance;
		std::map<int,char*> mybook;
		friend std::ostream& operator << (std::ostream& os,User& that);
		User(int m_uid=0,const char* m_username = " ",const char* m_password = " ",float balance = 100);
		User(int m_uid,const char* m_username,const char* m_password,float balance,std::map<int,char*> v_usrmap);
		User& operator = (const User &that);
		bool borrowbook(int book_id,char* bookname);
		bool revertbook(int bookid);
		void listmyborrow(void);
		bool operator == (const User &that);
		~User();	
	};
}
#endif